<?
foreach($_COOKIE as $key => $value) {
	if(!is_array($value)){
		${$key} = trim(rawurldecode($value));
		//echo "$key $value<br>";
	}
	else{
		${$key} = $value;
	}
}
foreach($_GET as $key => $value) { 
	if(!is_array($value)){
		${$key} = S(trim(rawurldecode($value)));
		//echo "$key $value<br>";
	}
	else{
		${$key} = S($value);
	}
}
foreach($_POST as $key => $value) { 
	if(!is_array($value)){
		${$key} = S(trim(rawurldecode($value)));
		//echo "$key $value<br>";
	}
	else{
		${$key} = S($value);
	}
}

/*foreach($_SESSION as $key => $value) { 
	if(!is_array($value)){
		${$key} = trim(rawurldecode($value));
		//echo "$key $value<br>";
	}
	else{
		${$key} = $value;
	}
}
*/
?>